import{observable,action,computed} from "mobx"

class User{
    @observable num=100;
    @observable userinfo=null;
    @action changeNum=(payload)=>{
        this.num +=payload
    }
    @action getuserinfo=(payload)=>{
        this.userinfo =payload
    }
}
export default new User();